home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!news
- From: miker3@ix.netcom.com (Mike Rubenstein)
- Newsgroups: comp.lang.c
- Subject: Re: underscore _var ?
- Date: Fri, 19 Apr 1996 04:05:19 GMT
- Organization: Netcom
- Message-ID: <31770eba.106174330@nntp.ix.netcom.com>
- References: <4l6d3o$ne0@mulga.cs.mu.OZ.AU>
- NNTP-Posting-Host: ix-dc13-16.ix.netcom.com
- X-NETCOM-Date: Thu Apr 18 11:05:08 PM CDT 1996
- X-Newsreader: Forte Agent .99d/32.182
-
- simc@mundil.cs.mu.OZ.AU (Falchion) wrote:
-
- >
- > What is an underscore at the start of
- > a function name or variable supposed
- > to indicate?
- >
- > eg. int _num;
- >
- > int _somefunction();
- >
- >
- > -- Simon
- > simc@mundil.cs.mu.oz.au
-
- Such names are reserved with external linkage. Most implementations
- use these for internal runtime functions or for non-standard
- functions.
-
- You can use them for names without external linkage (i.e., statics and
- locals), but there's no agreed upon meaning and really no good reason
- to use them, except where they are needed to access nonstandard
- features of the implementation.
-
- Michael M Rubenstein
-